using System;
using System.Collections.Generic;
using System.Text;

namespace CVSS.Client.SC.Tools
{
    static class BookMarkHelper
    {
        static readonly Dictionary<string, byte> _dic =
            new Dictionary<string,byte>(100);

        public static void Insert(string carplate)
        {
            if (!string.IsNullOrEmpty(carplate))
            {
                if (!_dic.ContainsKey(carplate))
                    _dic.Add(carplate, 0);
            }
        }

        public static void Delete(string carplate)
        {
            if (!string.IsNullOrEmpty(carplate))
            {
                if (_dic.ContainsKey(carplate))
                    _dic.Remove(carplate);
            }
        }

        public static bool IsMarked(string carplate)
        {
            if (!string.IsNullOrEmpty(carplate))
            {
                return _dic.ContainsKey(carplate);
            }
            return false;
        }

    }
}
